﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FireBillBook.Core.Helpers
{
    public class DataConvertFactory
    {
        public static IBillingDataConverter  GetConverter(DataSource source)
        {
            switch (source)
            {
                case DataSource.AliPay:
                    return new AlipayBillingDataConverter();
                case DataSource.WeChat:
                    return new WecharBillingDataConverter();
                default:
                    return null;
            }
        }
    }

    public enum DataSource
    {
        AliPay = 0,
        WeChat = 1,
    }
}
